package com.palm.core.anno.impl;

import com.palm.core.ui.tags.TagInnerAction;
import org.noear.solon.core.handle.Context;
import org.noear.solon.core.handle.Handler;


public class BackendOnlyHandler implements Handler{
    @Override
    public void handle(Context ctx) throws Throwable {
        if(!ctx.attr(TagInnerAction.backendFlag,false)){
            ctx.setHandled(true);
            ctx.status(404);
        }
    }
}
